<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/20/020
 * Time: 14:48
 */

namespace app\api\validate;


class CategoryValidate extends BaseValidate{
    protected $rule = [
        'name' => 'require',
        'image' => 'require',
        'pid' => 'require',
    ];


    protected $message=[
        'name.require' => '品牌名称不能为空',
        'image.require' => '请上传分类图片',
        'pid.require' => '请选择上级分类',
    ];
}